idf.py がやっていることを理解する
idf.py のコマンド
$ idf.py build
Building is incremental so if no source files or configuration has changed since the last build, nothing will be done.
$ idf.py app
アプリのみをビルド
$ idf.py bootloader
ブートローダーのみをビルド
$ idf.py partition_table
パーティションテーブルのみをビルド
$ idf.py reconfigure
re-runs CMake even if it doesn’t seem to need re-running. This isn’t necessary during normal usage, but can be useful after adding/removing files from the source tree, or when modifying CMake cache variables
参考